import request from '@/utils/request'

// 添加页面名称
export function addPage(data) {
    return request({
      url: '/ai_smart/page_info',
      method: 'put',
      data: data
    })
}

// 修改页面名称
export function updatePage(data) {
    return request({
      url: '/ai_smart/page_info',
      method: 'post',
      data: data
    })
}

// 删除页面名称
export function deletePage(data) {
    return request({
      url: '/ai_smart/page_info',
      method: 'delete',
      data: data
    })
}

// 删除页面输入项-单项
export function deletePageInputOption(data) {
    return request({
      url: '/ai_smart/page_info/input_option',
      method: 'delete',
      data: data
    })
}

// 删除页面输入项-多项
export function deletePageInputOptions(data) {
    return request({
      url: '/ai_smart/page_info/input_options',
      method: 'delete',
      data: data
    })
}


// 删除页面输出项-单项
export function deletePageOutOption(data) {
    return request({
      url: '/ai_smart/page_info/out_option',
      method: 'delete',
      data: data
    })
}

// 删除页面输出项-多项
export function deletePageOutOptions(data) {
    return request({
      url: '/ai_smart/page_info/out_options',
      method: 'delete',
      data: data
    })
}


// 添加页面输入项-单项
export function addPageInputOption(data) {
    return request({
      url: '/ai_smart/page_info/input_option',
      method: 'put',
      data: data
    })
}

// 添加页面输出项-单项
export function addPageOutOption(data) {
  return request({
    url: '/ai_smart/page_info/out_option',
    method: 'put',
    data: data
  })
}

// 修改页面输入项-单项
export function updatePageInputOption(data) {
    return request({
      url: '/ai_smart/page_info/input_option',
      method: 'post',
      data: data
    })
}

// 修改页面输出项-单项
export function updatePageOutOption(data) {
  return request({
    url: '/ai_smart/page_info/out_option',
    method: 'post',
    data: data
  })
}